package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 首页资源对象 homepage_resource
 * 
 * @author xin
 * @date 2024-04-21
 */
public class HomepageResource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 资源类型 */
    @Excel(name = "资源类型")
    private String openType;

    /** 图片路径 */
    private String imgSrc;

    /** 导航名 */
    @Excel(name = "导航名")
    private String name;

    /** 活动id */
    @Excel(name = "活动id")
    private Long activityId;

    /** 页面跳转路径 */
    @Excel(name = "页面跳转路径")
    private String navigatorUrl;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOpenType(String openType) 
    {
        this.openType = openType;
    }

    public String getOpenType() 
    {
        return openType;
    }
    public void setImgSrc(String imgSrc) 
    {
        this.imgSrc = imgSrc;
    }

    public String getImgSrc() 
    {
        return imgSrc;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setNavigatorUrl(String navigatorUrl) 
    {
        this.navigatorUrl = navigatorUrl;
    }

    public String getNavigatorUrl() 
    {
        return navigatorUrl;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openType", getOpenType())
            .append("imgSrc", getImgSrc())
            .append("name", getName())
            .append("activityId", getActivityId())
            .append("navigatorUrl", getNavigatorUrl())
            .append("sort", getSort())
            .toString();
    }
}
